#ifndef CARDCONFIGVIEW_H
#define CARDCONFIGVIEW_H

#include ".\configview.h"
#include <QVariant>

class CardConfigView : public ConfigView
{
    Q_OBJECT
public:
    explicit CardConfigView(QObject *parent = nullptr);
    ~CardConfigView();

    QWidget* viewWidget() override;
    void updateConfig(const QJsonArray &config) override;
    QJsonArray getModifiedConfig() const override;

private:
    QWidget *m_view = nullptr;
    QScrollArea *m_scrollArea = nullptr;
    QWidget *m_scrollContent = nullptr;
    QJsonArray m_currentConfig;
};

#endif // CARDCONFIGVIEW_H
